NFA Reduction Algorithms by Means of Regular Inequalities
نویسندگان
چکیده
We present different techniques for reducing the number of states and transitions in nondeterministic automata. These techniques are based on the two preorders over the set of states, related to the inclusion of left and right languages. Since their exact computation is NP-hard, we focus on polynomial approximations which enable a reduction of the NFA all the same. Our main algorithm relies on a first approximation, which can be easily implemented by means of matrix products with an O(mn3) time complexity, and optimized to an O(mn) time complexity, where m is the number of transitions and n is the number of states. This first algorithm appears to be more efficient than the known techniques based on equivalence relations as described by Lucian Ilie and Sheng Yu. Afterwards, we briefly describe some more accurate approximations and the exact (but exponential) calculation of these preorders by means of determinization.
منابع مشابه
Minimized Thompson NFA
The problem of converting a regular expression to NFA is a fundamental problem that has been well studied. However, the two basic construction algorithms: (1) Thompson, (2) McNaughton-Yamada and Glushkov, both have disadvantages. In this paper: First, a “smart” parsing algorithm is developed which constructs a parse tree with at most (3l − 1) nodes form a regular expression with l literals; Sec...
متن کاملThree New Algorithms for Regular Language Enumeration
We present new and more efficient algorithms for regular language enumeration problems. The min-word problem is to find the lexicographically minimal word of length n accepted by a given NFA, the cross-section problem is to list all words of length n accepted by an NFA in lexicographical order, and the enumeration problem is to list the first m words accepted by an NFA according to length-lexic...
متن کاملOn NFA Reductions
We give faster algorithms for two methods of reducing the number of states in nondeterministic finite automata. The first uses equivalences and the second uses preorders. We develop restricted reduction algorithms that operate on position automata while preserving some of its properties. We show empirically that these reductions are effective in largely reducing the memory requirements of regul...
متن کاملFrom Regular Expressions to DFA's Using Compressed NFA's
There are two principal methods for turning regular expressions into NFA’s one due to McNaughton and Yamada and another due to Thompson. Unfortunately, both have drawbacks. Given a regular expression R of length r and with s occurrences of alphabet symbols, Chang and Paige (1992) and Briiggemamr-Klein (1993) gave O(m + r) time and O(r) space algorithms to produce a O(m) space representation of ...
متن کاملMinimalizations of NFA Using the Universal Automaton
1 Introduction In this contribution we shall see how our (algebraic) approach to the so-called universal automaton of a given regular language helps to understand the process of the minimalization of a NFA. The minimality is meant with respect to the number of states. Although it is known that the problem is PSPACE-complete (see [5]) one can propose algorithms of not too high complexities to co...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- Theor. Comput. Sci.
دوره 327 شماره
صفحات -
تاریخ انتشار 2003